// 1.引入vue-router 
import Vue from "vue";
import VueRouter from  "vue-router";
let originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function(location) {
    return originalPush.call(this,location).catch(err=>{})
}
Vue.use(VueRouter);
const routes = [
    {
        path:"/",
        component:()=>{"@/components/HelloWorld"},
    },
];
let router = new VueRouter({
    routes
});
export default router